package com.kfm.springmybatis.service;

import com.kfm.springmybatis.dao.DeptMapper;
import com.kfm.springmybatis.model.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class DeptService {
    @Autowired
    private DeptMapper deptMapper;
    public List<Dept> selectAll() {
       return deptMapper.selectAll();
    }
}
